//规则页面
class RuleTip extends eui.Component {
	private SPEED: number = 800; //速度

	private moda: eui.Image; //规则
	private close_btn: eui.Button; //按钮

	public constructor() {
		super();
		this.skinName = "ruleTip";
		//init
		this.init();
	}

	//初始化
	private init() {
		//动画进入
		egret.Tween.get(this.moda).to({
			y: 0
		}, this.SPEED);
		this.close_btn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.close, this);
		// this.touchChildren = false; //确定子孙是否接受触摸事件，默认true
		// this.touchEnabled = false; //此对象是否接受触摸事件，默认true
	}

	private close() {
		this.addChild(new Start())
	}
}